#ifndef __HDL_LED_H
#define __HDL_LED_H
#include "stm32f4xx.h"
#include "stm32f4xx_gpio.h"
#include "stm32f4xx_rcc.h"
#include <stdio.h>

typedef struct led_pin_init
{
    /* data */
    uint32_t         pin_clk;
    GPIO_TypeDef*    pin_port;
    uint32_t         pin_num;
    GPIOMode_TypeDef pin_mode;
    void (*rcc_clk_cmd_t)(uint32_t, FunctionalState);
} cfg_led_pin_t;

extern void vhdl_led_init(cfg_led_pin_t pin_sturct[], uint8_t len);

extern void vhdl_led_on(GPIO_TypeDef* led_port, uint16_t led_pin);

extern void vhdl_led_off(GPIO_TypeDef* led_port, uint16_t led_pin);

#endif
